package demo1;

import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2023-10-23
 * Time: 16:33
 */
public class Test1 {
    public static void main(String[] args) {
        int[][] array1 = {{1,2,3},{4,5,6}};
        System.out.println(array1.length);
        System.out.println(array1[1].length);
        for (int i = 0; i < array1.length; i++) {
            for (int j = 0; j < array1[i].length; j++) {
                System.out.print(array1[i][j]+" ");

            }
            System.out.println();
        }
        System.out.println("=======  ");
        for (int[] tmp : array1) {
            for (int x :tmp) {
                System.out.print(x+" ");
            }
            System.out.println();
        }
        System.out.println("=======  ");
        String ret = Arrays.deepToString(array1);
        System.out.println(ret);
    }

}
